package com.msb.common.exception;

/**
 * @Auther: huangxiaode
 * @Date: 2023/3/19 0019 - 03 - 19 - 11:25
 * @Description: com.msb.common.exception
 * @version: 1.0
 */
public class NoStockExecption extends RuntimeException {
    private Long skuId;

    public NoStockExecption(Long skuId) {
        super("当前商品["+skuId+"]没有库存了");
        this.skuId = skuId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
